﻿using UnityEngine;
using System.Collections;

public class ExitButton : MonoBehaviour, ITouchable {

    public bool exitButtonPressed = false;

	// Use this for initialization
	void Start () {

        TouchableList.Instance.AddItem(this);

	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void OnTouch(Vector3 screenPosition, Vector3 worldPosition)
    {
        exitButtonPressed = true;
    }

    public bool HoldsTouch()
    {
        return false;
    }

    public void OnRelease(Vector3 screenPosition, Vector3 worldPosition)
    {
        
    }

    public GameObject GetColliderObject()
    {
        return this.gameObject;
    }

    public void OnDrag(Vector3 screenPosition, Vector3 worldPosition)
    {

    }

    public bool TouchEnabled { get; set; }
}
